<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>溢出设置</title>
    <style>
        div {
            width: 200px;
            height: 200px;
            border: 1px solid red;
            /*!* hidden 超出的部分不显示 *!*/
            /*overflow: hidden;*/
            /*!* visible 默认显示 *!*/
            /*overflow: visible;*/
            /* scroll 滚动显示 */
            overflow: scroll;
        }
        img{
            width: 100px;
        }
    </style>
</head>
<body>
<input type="text">
<img src="dn1.png" alt="">
<div>
    <img src="dn1.png" alt="">
</div>
</body>
</html>